﻿  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="qst_dataentry_list.aspx.cs" Inherits="Ccit.OA.Question.qst_dataentry_list" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v8.1" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v8.1" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>调查问卷-我填报的问卷</title>
    <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" src="../script/jwindow.js"></script>
    <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
    <script type="text/javascript">
        function doEdit(vSID,curCount)
        { 
             var oPageParam="Id="+vSID+"&curCount="+curCount+"&type=1";
             var oEncodeParam=base64encode(oPageParam);
             var strUrl="qst_dataentry_edit.aspx?"+oEncodeParam;
             window.location.href = strUrl;
        }
        function doView(vSID)
        {
             var oPageParam="Id="+vSID;
             var oEncodeParam=base64encode(oPageParam);
             var strUrl="qst_dataentry_view.aspx?"+oEncodeParam;
             OpenWindow(strUrl,"","800","500");
        }
    </script>
</head>
<body>
    <ccit:ActionForm id="form1" runat="server">
   <table class="tbToolbar" cellpadding="0" cellspacing="0" width="98%" align="center">
                    <tr>
                        <td align="left">
                            <div class="tbSeparator"></div>
                        </td>
                        <td width="100%" class="titlebar">  
                            调查问卷-我填报的问卷列表
                        </td>                
                        <td align="right">
                            <nobr>
                                标题:                                  
                                <asp:TextBox ID="txtTitle" CssClass="input" Width="100" runat="server"></asp:TextBox>                    
                                &nbsp;状态:<asp:DropDownList ID="ddlStaue" CssClass="inputselect" Width="100" runat="server">
                                <asp:ListItem Value="4">全部</asp:ListItem>                                
                                <asp:ListItem Value="1">已发布</asp:ListItem>
                                <asp:ListItem Value="2">已结束</asp:ListItem>
                            </asp:DropDownList> 
                                &nbsp;<asp:LinkButton ID="lnbQuery" CssClass="linktext" runat="server" onclick="lnbQuery_Click" 
                                >
                                    <img src="../images/toolbar/search.gif" />查询
                                </asp:LinkButton>  
                             </nobr>
                        </td> 
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0" width="98%" align="center">
                                <tr>
                                    <td colspan="3" width="100%">
                                      <dxwgv:ASPxGridView ID="dgMain" runat="server"
                                AutoGenerateColumns="False" Width="100%" KeyFieldName="id" 
                                            onhtmlrowcreated="dgMain_HtmlRowCreated">
                                            <SettingsPager AlwaysShowPager="True" PageSize="15">
                                                <FirstPageButton Visible="True">
                                                </FirstPageButton>
                                                <LastPageButton Visible="True">
                                                </LastPageButton>
                                            </SettingsPager>
                                             <Styles>
                                                <Row CssClass=""></Row>
                                                <AlternatingRow  CssClass="" Enabled="true"/>
                                                <SelectedRow  CssClass=""></SelectedRow>                
                                            </Styles>  
                                            <Columns>
                                                 
                                                <dxwgv:GridViewDataTextColumn Caption="问卷标题" VisibleIndex="1" width="25%" FieldName="title">
                                                 <HeaderStyle HorizontalAlign="Center" />
                                                 <CellStyle HorizontalAlign="left"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                <dxwgv:GridViewDataTextColumn Caption="状态" VisibleIndex="2" width="5%" FieldName="state">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                 <dxwgv:GridViewDataTextColumn Caption="答复状态" VisibleIndex="3" width="5%" FieldName="typename">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                 <dxwgv:GridViewDataTextColumn Caption="类型" VisibleIndex="4" width="5%" FieldName="type">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>  
                                              
                                                 <dxwgv:GridViewDataTextColumn Caption="发布时间" VisibleIndex="5" width="12%" FieldName="begintime">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                               
                                                 <dxwgv:GridViewDataTextColumn Caption="操作" VisibleIndex="6" width="12%">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                   <DataItemTemplate>
                                                   <nobr>                                                         
                                                        <a id="lnbTB" runat="server">填报</a>  
                                                        </nobr>
                                                   </DataItemTemplate>
                                                </dxwgv:GridViewDataTextColumn>
                                            </Columns> 
                                            
                                        </dxwgv:ASPxGridView>
                                    </td>
                                </tr>
                            </table>
    </ccit:ActionForm>
</body>
</html>
